package com.zzx.boot.websocket;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component //项目初始胡完毕后执行
public class WebsocketRunner implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        WebSocketServer socketServer = new WebSocketServer(9090);
    }


}
